/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.util.HashMap;
import java.util.List;
import java.util.Date;

/**
 *
 * @author fiifi
 */
public class Student extends User {

    public String classLevel;
    public List<Course> coursesRegistered;
    public HashMap<String, String> coursesAndGrades;

    public HashMap<String, String> getCoursesAndGrades() {
        return coursesAndGrades;
    }

    public void setCoursesAndGrades(HashMap<String, String> coursesAndGrades) {
        this.coursesAndGrades = coursesAndGrades;
    }

    

    public List<Course> getCoursesRegistered() {
        return coursesRegistered;
    }

    public void setCoursesRegistered(List<Course> coursesRegistered) {
        this.coursesRegistered = coursesRegistered;
    }

    public Student() {
    }

    public Student(String userID, String firstName, String lastName, String otherNames, Date dateOfBirth, String address, String eMail, String pword, String user_type, String classLevel) {
        super(userID, firstName, lastName, otherNames, dateOfBirth, address, eMail, pword, user_type);
        this.classLevel = classLevel;
    }
    
    public Student(String firstName, String lastName, String otherNames, Date dateOfBirth, String address, String eMail, String pword, String user_type, String classLevel) {
        super.setFirstName(firstName);
        super.ssetLastName(lastName);
        super.setOtherNames(otherNames);
        super.setEmail(eMail);
        super.setPassword(pword);
        super.setDateOfBirth(dateOfBirth);
        super.setType(user_type);        
        this.classLevel = classLevel;
    }

    public String getClassLevel() {
        return classLevel;
    }

    public void setClassLevel(String classLevel) {
        this.classLevel = classLevel;
    }

    @Override
    public String toString() {
        String studentDetails = "";
        String NEW_LINE = "<br>";
        studentDetails =
                NEW_LINE + "First Name: " + this.getFirstName()
                + NEW_LINE + "Other Name(s): " + this.getOtherName()
                + NEW_LINE + "Last Name: " + this.getlastName()
                + NEW_LINE + "Student Address: " + this.getAddress()
                + NEW_LINE + "Date of Birth: " + this.getDateOfBirth()
                + NEW_LINE + "Email Address: " + this.getEmail()
                + NEW_LINE + "Class: " + this.getClassLevel()
                + NEW_LINE + "Id No.: " + this.getId();
        return studentDetails;
    }
}
